#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2014-08-22 01:14:23
# @Author  : shitao.tommy (hero007asd@gmail.com)
# @Link    : http://example.org
# @Version : $Id$

work_type = {'1':'空调',
            '2':'洗衣机',
            '3':'空气源',
            '4':'开水器',
            '5':'水',
            '6':'电',
            '7':'家具',
            '99':'其他'}

def get_type_dict():
    return work_type

def get_name(type_id):
    name = '无'
    try:
        name = work_type[str(type_id)]
    except Exception, e:
        raise e
    return name


pay_mode = {'1':'现金', '2':'pos机', '3':'签单'}

def get_pay_mode_dict():
    return pay_mode

def get_pay_mode(type_id):
    name = '无'
    try:
        name = pay_mode[str(type_id)]
    except Exception, e:
        raise e
    return name
